<template>
  <div>
    <el-dialog title="申请" :visible.sync="dialogVisible" width="40%">
      <el-form ref="form" :model="form" label-width="100px">
        <el-form-item label="申请类型">
          <el-select v-model="form.region" placeholder="请选择活动区域">
            <el-option label="离职" value="shanghai"></el-option>
            <el-option label="加班" value="beijing"></el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="加班开始时间">
          <el-date-picker v-model="form.date1" type="datetime" placeholder="选择日期时间"> </el-date-picker>
        </el-form-item>
        <el-form-item label="加班结束时间">
          <el-date-picker v-model="form.date2" type="datetime" placeholder="选择日期时间"> </el-date-picker>
        </el-form-item>
        <el-form-item label="补偿方式">
          <span>调休</span>
        </el-form-item>
        <el-form-item label="加班原因">
          <el-input type="textarea" v-model="form.desc" placeholder="请输入内容"></el-input>
        </el-form-item>
        <el-form-item>
          <el-button type="primary" @click="onSubmit">提交</el-button>
          <el-button>重置</el-button>
        </el-form-item>
      </el-form>
    </el-dialog>
  </div>
</template>

<script>
export default {
  data() {
    return {
      dialogVisible: false,
      form: {
        name: "",
        region: "",
        date1: "",
        date2: "",
        delivery: false,
        type: [],
        resource: "",
        desc: ""
      }
    }
  },
  methods: {
    add() {
      console.log(1)
      this.dialogVisible = true
    },
    onSubmit() {
      this.dialogVisible = false
    }
  }
}
</script>

<style lang="scss" scoped></style>
